<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrderTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('order', function (Blueprint $table) {
            $table->increments('id');
            $table->string('order_id')->nullable();
            $table->tinyInteger('status')->default('0')->nullable()->comment('状态 0 完成 1. 未完成');
            $table->string('name')->nullable()->comment('课程名称');
            $table->decimal('price')->nullable()->comment('课程价格');
            $table->string('img')->nullable()->comment('课程图片');
            $table->text('deao')->nullable()->comment('课程简介');
            $table->timestamp('deletd_at')->nullable()->comment('删除时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('order');
    }
}
